ascii_to_character

This function returns the character that corresponds to a given ASCII code.

string ascii_to_character(int the_ascii_code)

Parameters:
the_ascii_code
The ASCII code that will be converted.

Return value:
A string containing the corresponding character, or an empty string on error.

Remarks:
This function supports all ASCII values from 0 to 255, which includes the extended character set. This means that foreign characters and currency symbols can also be converted.

If the supplied ASCII code is out of range, an empty string will be returned.

Example:
void main()
{
alert("ascii_to_character test", ascii_to_character(65)); // Output should be A
}